package com.ds.springboot.controller;

import com.ds.starter.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-09-starter-test
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-05-16
 **/
@RestController
public class HelloController {
    @Autowired
    HelloService helloService;
    @GetMapping("/hello")
    public String hello(){
        return helloService.sayHello("窝窝头一块钱四个");
    }
}
